package makabakaquestionnaire.zutsoftware.entity;

import lombok.Data;
import makabakaquestionnaire.zutsoftware.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 评价模板对象 project_template
 *
 * @author wjf
 * @date 2022-03-23
 */
@Data
public class ProjectTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 问卷唯一标识 */
    @Excel(name = "问卷唯一标识")
    private String projectKey;

    /** 喜欢数目 */
    @Excel(name = "喜欢数目")
    private Long likeCount;

    /** 模板所在目录 */
    @Excel(name = "模板所在目录")
    private Long categoryId;

    public String getProjectKey() {
        return projectKey;
    }

    public void setProjectKey(String projectKey) {
        this.projectKey = projectKey;
    }

    /** 问卷描述 */
    @Excel(name = "问卷描述")
    private String projectDescribe;

    /** 模板评价问卷的名称 */
    @Excel(name = "模板评价问卷的名称")
    private String projectName;

    /** 0未删除，1删除 */
    private String delFlag;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long spareOne;

    /** 模板的状态 */
    @Excel(name = "模板的状态")
    private int status;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long spareTwo;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void projectKey(String key)
    {
        this.projectKey = key;
    }

    public String projectKey()
    {
        return projectKey;
    }
    public void setLikeCount(Long likeCount)
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount()
    {
        return likeCount;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setProjectDescribe(String projectDescribe)
    {
        this.projectDescribe = projectDescribe;
    }

    public String getProjectDescribe()
    {
        return projectDescribe;
    }
    public void setProjectName(String projectName)
    {
        this.projectName = projectName;
    }

    public String getProjectName()
    {
        return projectName;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setSpareOne(Long spareOne)
    {
        this.spareOne = spareOne;
    }

    public Long getSpareOne()
    {
        return spareOne;
    }

    public void setSpareTwo(Long spareTwo)
    {
        this.spareTwo = spareTwo;
    }

    public Long getSpareTwo()
    {
        return spareTwo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectKey", projectKey())
            .append("likeCount", getLikeCount())
            .append("categoryId", getCategoryId())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("projectDescribe", getProjectDescribe())
            .append("projectName", getProjectName())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("delFlag", getDelFlag())
            .append("spareOne", getSpareOne())
            .append("status", getStatus())
            .append("spareTwo", getSpareTwo())
            .toString();
    }
}
